package com.xzan.medusa.core.manager;

import com.xzan.medusa.common.query.PageResult;
import com.xzan.medusa.dal.model.CcCarDO;
import com.xzan.medusa.dal.query.CcCarQuery;

import java.util.List;


/**
 * Manager for CcCar.
 */
public interface CcCarManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CcCarQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CcCarQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CcCarDO record);

    /**
     * insert selective.
     */
    long insertSelective(CcCarDO record);

    /**
     * batch insert.
     */
    int batchInsert(List<CcCarDO> records);

    /**
     * select by query condition.
     */
    List<CcCarDO> selectByQuery(CcCarQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CcCarDO> selectByQueryWithPage(CcCarQuery query);

    /**
     * select by primary key.
     */
    CcCarDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CcCarDO record,  CcCarQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CcCarDO record, CcCarQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CcCarDO record);
}